package com.itheima.store.dao;

import java.sql.SQLException;
import java.util.List;

import com.itheima.store.domain.BookCategory;

/**
 * 分类的DAO的接口
 * @author admin
 *
 */
public interface BookCategoryDao {

	List<BookCategory> findAll()throws SQLException;

	void save(BookCategory category)throws SQLException;

	BookCategory findByCid(String cid)throws SQLException;

	void update(BookCategory category)throws SQLException;

	void deleteCategoryByCid(String cid)throws SQLException;

	Integer findCount() throws SQLException;

	List<BookCategory> findPage(int begin, Integer pageSize) throws SQLException;

	


}
